/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.aaron.platform.dao;

import com.aaron.platform.exceptions.XmlParseException;
import com.aaron.platform.exceptions.XmlPathException;
import com.aaron.platform.entity.ItscPriInfo;
import java.io.File;
import java.util.List;
import org.apache.myfaces.custom.tree2.TreeModel;

/**
 *
 * @author mac
 */
public interface IXmlParser {

    public List<ItscPriInfo> parsePreInfoXml(File xmlFile) throws XmlPathException, XmlParseException;

    /**
     * 解析菜单配置文件
     * @param xmlFile 配置文件
     * @param roleName 角色名
     * @return 树形结构
     * @throws XmlPathException
     * @throws XmlParseException
     */
    public TreeModel parseMenuXml(File xmlFile, String roleName) throws XmlPathException, XmlParseException;

}
